package com.hc.demo.mapper;

import com.hc.demo.domain.Hospital;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface HospitalMapper {
    int deleteByPrimaryKey(Integer hpId);

    int insert(Hospital record);

    int insertSelective(Hospital record);

    Hospital selectByPrimaryKey(Integer hpId);

    int updateByPrimaryKeySelective(Hospital record);

    int updateByPrimaryKeyWithBLOBs(Hospital record);

    int updateByPrimaryKey(Hospital record);

    @Select("select hpId, name, telephone, address, businessHours, deadline, rule, state,picture from hospital" +
            " where state=#{state}")
    List<Hospital> selectByState(Integer state);
}